package com.sharp.oss.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * Title: SaBanner
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/30 13:24
 */

/**
 * 轮播图
 */
@ApiModel(value = "com-sharp-oss-dao-entity-SaBanner")
@Data
@Table(name = "sa_banner")
public class SaBanner {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 地址
     */
    @Column(name = "url")
    @ApiModelProperty(value = "地址")
    private String url;

    /**
     * 跳转地址
     */
    @Column(name = "redirect_url")
    @ApiModelProperty(value = "跳转地址")
    private String redirectUrl;

    /**
     * banner类型
     */
    @Column(name = "`type`")
    @ApiModelProperty(value = "banner类型")
    private Integer type;

    /**
     * 显示
     */
    @Column(name = "`show`")
    @ApiModelProperty(value = "显示")
    private String show;

    /**
     * 显示顺序
     */
    @Column(name = "display_order")
    @ApiModelProperty(value = "显示顺序")
    private Integer displayOrder;

    /**
     * 创建时间
     */
    @Column(name = "create_at")
    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    /**
     * 更新时间
     */
    @Column(name = "update_at")
    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    /**
     * 有效性
     */
    @Column(name = "`valid`")
    @ApiModelProperty(value = "有效性")
    private String valid;
}